package io;

import java.io.File;

public class Text8 {
    public static void main(String[] args) {
        File f = new File("hello.txt");
        File dest = new File("hhh2.txt");
        System.out.println(f.exists());
        System.out.println(dest.exists());
        System.out.println(f.renameTo(dest));
        System.out.println(f.exists());
        System.out.println(dest.exists());

    }
}
